<script setup lang="ts">
import { useTestStore } from '@/stores'
import { storeToRefs } from 'pinia'
const testStore = useTestStore()
const { count } = storeToRefs(testStore)
</script>

<template>
  <div class="store-page">store</div>
  <h3>{{ count }}</h3>
  <button @click="testStore.addCount">点击++</button>
</template>

<style lang="scss" scoped></style>
